<?php

/**
 * Abonnement form.
 *
 * @package    tfe
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $
 */
class AbonnementForm extends BaseAbonnementForm
{
  public function configure()
  {
      unset($this['created_at'], $this['updated_at'], $this['deleted_at']);

      $this->widgetSchema['commentaire'] = new sfWidgetFormCKEditor(array('jsoptions'=>array('toolbar'=>'Basic','skin'=>'kama' ,'width'=>'800px')));

      $this->widgetSchema['spectacles_list'] = new sfWidgetFormDoctrineChoice(array('multiple' => true, 'model' => 'Spectacle', 'order_by' => array('titre','asc')));
      $this->widgetSchema['spectacles_list']->setOption('renderer_class', 'sfWidgetFormSelectDoubleList');
      $this->widgetSchema['spectacles_list']->setOption('renderer_options', array(
          'label_associated' => 'Sélectionnés',
          'label_unassociated' => 'Non sélectionnés'
      ));
  }
}
